#pragma once

class DIRenderer;
class DAnimation;

#include "../Math/vec2.h"

class DBackground
{
public:
	DBackground(boost::shared_ptr<DAnimation> anim);
	~DBackground(void);

	void update(float dt);
	
    const vec2& pos() const;
    void setScrollingVel(const vec2& vel);
    bool isScrolling() const;
	boost::shared_ptr<DAnimation> animation();
private:
	boost::shared_ptr<DAnimation> m_anim;

	vec2 m_pos;
    vec2 m_scrollingVel;
    bool m_bScrolling;
};
